<template>
	<view>
		<image :src="picUlr" mode="aspectFill" @click="getPicturl"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				picUlr: ""
			}; 
		},
		methods: {
			getPicturl() {
				uni.request({
					url: "https://dog.ceo/api/breeds/image/random",
					success: res => {
						this.picUlr = res.data.message;
					}
				})
			}
		},
		onLoad() {
			this.getPicturl();
		}
	}
</script>

<style lang="scss">

</style>